package com.demo.config;

import dev.langchain4j.model.openai.OpenAiChatModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ApiConfig {

    @Bean
    public OpenAiChatModel openAiChatModel() {
        return OpenAiChatModel.builder()
                .baseUrl("https://api.deepseek.com")
                .apiKey("sk-69a40c4cdc65412eb588ec2b7c122f66")
                .modelName("deepseek-chat")
                .logRequests(true)
                .logResponses(true)
                .build();
    }
}
